//
//  JFViewController.m
//  JFAlertView
//
//  Created by ranjingfu on 01/20/2016.
//  Copyright (c) 2016 ranjingfu. All rights reserved.
//

#import "JFViewController.h"
#import "JFAlertView.h"
@interface JFViewController ()<JFAlertViewDeledate>

@end

@implementation JFViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    
    JFAlertView *alert = [[JFAlertView alloc] initWithTitle:@"HELLO"
                                                    message:@"Test"
                                                   delegate:self
                                          cancelButtonTitle:@"取消"
                                          otherButtonTitles:@"确定"];
    [alert show];
	// Do any additional setup after loading the view, typically from a nib.
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

-(void)JFAlertClickView:(JFAlertView *)alertView index:(JFAlertViewClickIndex)buttonIndex
{
    NSLog(@"JFAlertClickView:%@ index:%d",alertView,buttonIndex);
}



@end
